﻿@model ProfileModel
@using Spotshub.Plugin.Payments.GlobalPayments.Models;
@using Telerik.Web.Mvc.UI;
@using Nop.Web.Framework;

@Html.ValidationSummary(false)
@Html.HiddenFor(model => model.Id)

@if (ViewBag.RefreshPage == true)
{
    <script type="text/javascript">
        window.close();
    </script>
}

<table class="adminContent">
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.Store):
        </td>
        <td class="adminData">
            @Html.DropDownListFor(model => model.StoreId, Model.AvailableStores)
            @Html.ValidationMessageFor(model => model.StoreId)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.ProfileId):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.ProfileId)
            @Html.ValidationMessageFor(model => model.ProfileId)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.ApiToken):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.ApiToken)
            @Html.ValidationMessageFor(model => model.ApiToken)
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            @Html.NopLabelFor(model => model.Type):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.Type)
            @Html.ValidationMessageFor(model => model.Type)
        </td>
    </tr>
</table>
